﻿@using LeadMaster.Helpers
@using LeadMaster.Properties

<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8" />
        <title>Dunsmore Lead Generation Management Console</title>
        <link href="~/favicon.ico" rel="shortcut icon" type="image/x-icon" />
        <meta name="viewport" content="width=device-width" />
        <link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" />

        @Styles.Render("~/Content/themes/base/css", "~/Content/css")
        <script src="http://code.jquery.com/jquery-1.9.1.js"></script>
        <script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
        <script src="~/Scripts/EntryPoint.js"></script>
        @Scripts.Render("~/bundles/jqueryval")
        <script src="~/Scripts/jquery.maskedinput.min.js" type="text/javascript"></script>
        <script src="~/Content/chosen/chosen.jquery.min.js" type="text/javascript"></script>
        <link href="~/Content/chosen/chosen.css" rel="stylesheet" type="text/css" />

        <!-- Latest compiled and minified CSS -->
        <link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.0.2/css/bootstrap.min.css">

        <!-- Optional theme -->
        <link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.0.2/css/bootstrap-theme.min.css">

        <!-- Latest compiled and minified JavaScript -->
        <script src="//netdna.bootstrapcdn.com/bootstrap/3.0.2/js/bootstrap.min.js"></script>


        <link href="~/Content/Site.css" rel="stylesheet" type="text/css" />

        <script type="text/javascript">
            $().ready(function () {
                $.ajaxSetup({ cache: false });
            });
        </script>
    </head>
    <body class="mainbody" >
    <div class="container_12">
        <div class="alpha grid_12 omega">
        
                @if (this.User.IsInRole(ApplicationRoles.Outsourcer) ||
                    this.User.IsInRole(ApplicationRoles.Installer) ||
                    this.User.IsInRole(ApplicationRoles.Introducer) ||
                    this.User.IsInRole(ApplicationRoles.Engineer) ||
                    this.User.IsInRole(ApplicationRoles.Client) ||
                    this.User.IsInRole(ApplicationRoles.ClientAdmin) ||
                    this.User.IsInRole(ApplicationRoles.Operations) ||
                    this.User.IsInRole(ApplicationRoles.DeaGda) ||
                    this.User.IsInRole(ApplicationRoles.Administrator))
                {
                    <div>
                    @Html.Action("ShowPic", "CallCentres")
                    </div>
                }

        <div class="maincontent">
        <div id="notice">
        </div>
            @RenderBody()
            @if (this.User.Identity.Name.Length > 0)
            {
                <div class="spacer"></div>
                <div id="campaigns">
                </div>
                
            }
            
        </div>
        <input type="hidden" id="hdnMaintenance" value="0" />

        <footer>
            <div class="content-wrapper">
                <div class="float-left">
                    <p>&copy; @DateTime.Now.Year - Dunsmore Marketing</p>
                </div>
            </div>
        </footer>
        
        @RenderSection("Scripts", required: false)

        </div>
        </div>
    </body>
</html>

<script type="text/javascript">
    $(document).ready(function () {

        $(".chosen").chosen();

    });
</script>